package com.allwees.bs.core.model.coupon.constant;

import com.baomidou.mybatisplus.core.enums.IEnum;
import lombok.Getter;

import java.util.concurrent.TimeUnit;

/**
 * 优惠券使用用途
 *
 * @author mouhaining
 * @since 2020-05-19 19:25
 */
@Getter
public enum ETimeUnit implements IEnum<String> {
    HOURS(TimeUnit.HOURS),
    DAYS(TimeUnit.DAYS);
    
    private TimeUnit unit;

    ETimeUnit(TimeUnit unit) {
        this.unit = unit;
    }

    @Override
    public String getValue() {
        return name();
    }
}
